<template>
  <div class="icon-test">
    <h2>图标测试页面</h2>
    <div class="icon-list">
      <h3>测试图标显示：</h3>
      <div class="icon-item">
        <svg-icon icon-class="theme" class="test-icon"></svg-icon>
        <span>theme 图标</span>
      </div>
      <div class="icon-item">
        <svg-icon icon-class="component" class="test-icon"></svg-icon>
        <span>component 图标</span>
      </div>
      <div class="icon-item">
        <svg-icon icon-class="setting" class="test-icon"></svg-icon>
        <span>setting 图标 (不存在)</span>
      </div>
      <div class="icon-item">
        <svg-icon icon-class="clipboard" class="test-icon"></svg-icon>
        <span>clipboard 图标</span>
      </div>
    </div>
    
    <div class="menu-test">
      <h3>菜单项测试：</h3>
      <div class="menu-item">
        <item icon="theme" title="基础管理" />
      </div>
      <div class="menu-item">
        <item icon="component" title="基础管理" />
      </div>
    </div>
  </div>
</template>

<script>
import Item from '@/layout/components/Sidebar/Item'

export default {
  name: 'IconTest',
  components: {
    Item
  }
}
</script>

<style scoped>
.icon-test {
  padding: 20px;
}

.icon-list, .menu-test {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.icon-item, .menu-item {
  display: flex;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 4px;
}

.test-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: #409eff;
}
</style>
